package resource

import "aifuture.cloud/response/resource"

type ResourceSvc struct {
	proxyInter ResourceInter
}

func NewResourceSvc(proxyInter ResourceInter) *ResourceSvc {
	return &ResourceSvc{proxyInter: proxyInter}
}
func (t *ResourceSvc) List() (error, []*resource.ResourceResponse) {
	return t.proxyInter.List()
}

func (t *ResourceSvc) Detail(id int) (error, interface{}) {
	return t.proxyInter.Detail(id)
}
